<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<head>
    <meta charset="UTF-8">
    <title>恢复办理</title>
</head>
<div class="body-main">
    <div style="text-align: center;font-size: 14px">
        注：恢复后，生产订单变回退单前状态
    </div>
</div>
<script type="text/javascript">
    /**
     * 恢复办理
     * @param tableId
     */
    function restore(id) {
        DGG.Confire("确认恢复订单吗？", '恢复办理', function () {
            DGG.loading();
            $.ajax({
                url: sysInfo.basePath + '/zzsc/chargebackre_jected/restore_order.do?id=' + id,
                type: "POST",
                dataType: "json",
                success: function (obj) {
                    DGG.loading('close');
                    if (obj.code != 0) {
                        DGG.Errors(obj.msg);
                        dataTableReload();
                    } else {
                        DGG.Succeed('操作成功！');
                        dataTableReload();
                        layer.closeAll();
                    }
                }
            });
        }, function () {

        });
    }
</script>
